package model;

import java.util.List;

public class PageEntity<T> { // 当前页数据
    private List<T> data; // 总页数
    private Integer totalPage; // 当前页
    private Integer currPage;//页大小(写死,每页显示5条数据)
    private Integer pageSize = 5; // 总记录数
    private Integer totalCount; // 省略get/set/toString..... }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getCurrPage() {
        return currPage;
    }

    public void setCurrPage(Integer currPage) {
        this.currPage = currPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }
}